-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: ensure StakingBalance is shown or hidden appropriately per asset… #12987
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Bitrise❌❌❌ Commit hash: a30b360 Note
Tip
|
a551ef7
to
f3e049d
Compare
Bitrise✅✅✅ Commit hash: f3e049d Note
|
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've successfully tested the fix locally. LGTM! 💯
Description
There are 2 separate issues that are both related to the StakedBalance component. One is Asset Detail StakingBalance shows for ETH assets on unsupported chains with popular networks filter. The other is Asset Detail StakingBalance does not show for mainnet ETH asset when on unsupported chain with popular networks filter.
The user will not see staked ethereum info for assets that are not mainnet Ethereum asset when on mainnet
The user will see staked ethereum info when on unsupported chain with popular networks filter and viewing the mainnet Ethereum asset detail. We show the details but hide any staking actions for the time being while we re-evaluate how to keep the actions and switch the network on the fly.
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/STAKE-921
Manual testing steps
Asset Detail StakingBalance shows for ETH assets on unsupported chains with popular networks filter
Switch to mainnet network
Switch to popular networks filter
Select the native asset of a popular network that is not mainnet, such as Base or Optimism
In the asset detail page you should not see staked ethereum info
Asset Detail StakingBalance does not show for mainnet ETH asset when on unsupported chain with popular networks filter
Switch to Base network
Switch to popular networks filter
Select the mainnet Ethereum asset
In the asset detail page you should see staked ethereum info and earnings info but no action buttons or claim link banners
Screenshots/Recordings
Before
Screen.Recording.2025-01-15.at.8.19.49.AM.mov
After
Simulator.Screen.Recording.-.iPhone.SE.3rd.generation.-.2025-01-15.at.08.18.44.mp4
Pre-merge author checklist
Pre-merge reviewer checklist